C=[1	15		1713;
2	110		45445 ;
3	185		1175521 ;
4	120		2160909 ;
5	102		1218462 ;
6	100		1148217]

D=[1    6	875 ;
2   13	765 ;
3   16	1578 ;
4   15	1594 ;
5   12	2641 ;
6   14	1282 ]

iter = C(:,1)

node = zeros(size(iter, 1), 2);
node(:,1) = D(:,2);
node(:,2) = C(:,2);
time = zeros(size(iter, 1), 2);
time(:,1) = D(:,3);
time(:,2) = C(:,3);

hold on;
xlabel('Horizon');
ylabel('Number of Nodes');
title('Inventory Control');
set(gca,'XTick',1:1:6);
plot(iter, node(:,1), '--r*', iter, node(:,2), '-bo');
legend('1 state - 1 action', '2 states - 2 actions', 2);
hold off;

%%

figure;
semilogy(iter,time(:,1), '--r*');
hold on;
semilogy(iter,time(:,2), '-bo');
xlabel('Horizon');
ylabel('Time(ms)');
title('Inventory Control');
set(gca,'XTick',1:1:6);
legend('1 state - 1 action', '2 states - 2 actions', 2);
hold off;